<template>
    <view class="cu-item arrow animation-slide-bottom" :style="[{animationDelay: '0.7s'}]" >
		<view class="content" >
			<u-input height="50" placeholder="请输入手机号" v-model="mobile" type="number" :clearable="false"></u-input>
			<u-input height="50" placeholder="请输入密码" v-model="password" type="number" :clearable="false"></u-input>
			<button   @click="open()"  >用户检验</button>
		</view>
	</view>
</template>
<script>
    export default {
        data() {
            return {
				mobile:'',
				password:'',
			};
        },
        onLoad() {},
        methods: {
            open(){
				
				var that = this;
				if (that.mobile === null || that.mobile === "") {
					uni.showToast({
						title: "请输入手机号",
						icon: "none"
					});
					return;
				}
				if (that.password === null || that.passwords === "") {
					uni.showToast({
						title: "请输入手机密码",
						icon: "none"
					});
					return;
				}
				if(that.mobile!="123" || that.password!="123"){
					uni.showToast({
						title: "这不是管理员",
						icon: "none"
					});
					return;
				}
				if(that.mobile!="123" && that.password!="123"){
					uni.showToast({
						title: "这是管理员",
						icon: "none"
					});
					return;
				}
			},
			
        },
    }
</script>
<style>
 
</style>

